<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <div th:replace="~{/fragment/header :: header}"></div>
    <div th:replace="~{/fragment/header :: header-css}"></div>
    <div th:replace="~{/fragment/header :: header-nav}"></div>
</head>
<body>
<form th:action="@{/user/save}" th:object="${user}" method="post">
    <input type="hidden" th:field="*{id}">

    <br>

    <div class="input-group mb-3">
        <span class="input-group-text">用户名</span>
        <input type="text" th:field="*{username}" class="form-control">
    </div>

    <div class="input-group mb-3">
        <span class="input-group-text">密码</span>
        <input type="password"  th:field="*{password}" class="form-control">
    </div>


    <input class="btn btn-primary" type="submit" th:value="提交">
    <a th:href="@{/user/list}" class="btn btn-secondary">返回</a>

</form>



<div th:replace="~{/fragment/header :: header-js}"></div>
<div th:replace="~{/fragment/footer :: footer}"></div>
</body>
</html>